﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domian.Entity
{
    /// <summary>
    /// 菜单信息类
    /// </summary>
    [Table("menu_info")]
    public class MenuInfo
    {
        /// <summary>
        /// 菜单Id
        /// </summary>
        [Key]
        public int MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName { get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string? MenuURL { get; set; }
        /// <summary>
        /// 菜单父级Id
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 排序字段
        /// </summary>
        public int SortBy { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
    }
}
